package com.blackbox.price.service;

import com.blackbox.price.entity.BbProject;
import com.blackbox.price.entity.BbUser;
import com.blackbox.price.mapper.BbProjectMapper;
import com.blackbox.price.mapper.BbUserMapper;
import com.blackbox.price.mapper.common.VisionService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: TWQ
 * @Description:
 * @Date: Created in 下午 21:40 2020/8/19 0024
 * @Modidied By: NO
 */
@Slf4j
@AllArgsConstructor
@Service("projectService")
public class ProjectService extends VisionService<BbProject> {

    @Resource
    private BbProjectMapper bbProjectMapper;

    public List<BbProject> queryProjectList(Integer otherwiseId) {
        return bbProjectMapper.queryProjectList(otherwiseId);
    }

    public BbProject queryProjectById(Integer id) {
        return bbProjectMapper.queryProjectById(id);
    }
}
